<template>
  <div>
    <div class="pt-20 pl-10 pb-20 font-bold">我的任务列表</div>

    <!-- list -->
    <div class="p-40">
      <div
        class="border mb-40 p-20 text-center"
        @click="tocreatetask(1)"
      >
        <span>我创建的任务</span>
      </div>

      <div
        class="border mb-40 p-20 text-center"
        @click="tocreatetask(2)"
      >
        <span>我参与的任务</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      list: [],
    };
  },

  methods: {
    tocreatetask(type) {
      uni.navigateTo({
        url: `/pages/page/myTaskList?type=${type}`,
      });
    },
  },
};
</script>

<style lang="scss" scoped></style>
